package com.momo.rabbitmq.receiver;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class MQReceiver {

    @RabbitListener(queues = "momo_queue")
    public void handler(String msg){
        System.out.println(msg);
    }
}
